//
//  WJDelegateBController.m
//  JerryIos
//
//  Created by 王军 on 2018/2/6.
//  Copyright © 2018年 王军. All rights reserved.
//

#import "WJDelegateBController.h"

@interface WJDelegateBController ()

@end

@implementation WJDelegateBController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    NSLog(@"===%@",self.param);
    self.receiveData.text = self.param;
}

- (IBAction)valueBackBtn:(id)sender {
    NSString *returnData = self.inputTextField.text;
    //传递数据给上一个控制器
    if ([self.delegate respondsToSelector:@selector(returnDataFromController:withData:)]) {
        [self.delegate returnDataFromController:self withData:returnData];
    }
    
    [self.navigationController popViewControllerAnimated:YES];
    
    
}
@end
